import request from '@/utils/request'

/**查询我的未完成路线列表 数量为1时调用我的派送任务，大于1时 选择一个后调用 我的派送任务 */
export function myUnCompleteList(params) {
  return request({
    url: '/distribution/googleRoute/myUnCompleteList',
    params
  })
}


export function myList(params) {
  return request({
    url: '/distribution/googleRouteShipments/myList',
    params
  })
}


/**确认送达 */
export function confirmShipment(data) {
  return request({
    url: '/distribution/googleRouteShipments/confirmShipment',
    method: 'post',
    data
  })
}


/**获取仓库起点接口  */
export function getStartLocation() {
  return request({
    url: '/distribution/googleRouteShipments/getStartLocation',
  })
}


/**扫码送达 */
export function scanDelivery(data) {
  return request({
    url: '/distribution/googleRouteShipments/scanDelivery',
    method: 'post',
    data
  })
}


/**扫码送达-保存地址图片信息 */
export function scanDeliverySavePic(data) {
  return request({
    url: '/distribution/googleRouteShipments/scanDeliverySavePic',
    method: 'post',
    data
  })
}


/**查询自配送路线配送详情 */
export function queryByIdDetails(id) {
  return request({
    url: `/distribution/googleRouteShipments/queryByIdDetails?id=${id}`,
  })
}

